package cn.itsource.org.service;

import cn.itsource.basic.utils.PageResult;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeService {
    List<Employee> findAll();

    Employee findOne(Long id);

    void add(Employee employee);

    void update(Employee employee);

    void delete(Long id);

    void patchdel(Long[] ids);

    PageResult<Employee> queryPage(EmployeeQuery EmployeeQuery);

    // 获取当前店铺下的所有员工：店长或者店员
    List<Employee> findEmployeeByShopId(Long shopId);
}

